Compiler Design


Q101.

Consider the following statements. S1: The sequence of procedure calls corresponds to a preorder traversal of the activation tree. S2: The sequence of procedure returns corresponds to a postorder traversal of the activation tree.Which one of the following options is correct?
GateOverflow

Q102.

Early binding refers to a binding performed at compile time and late binding refers to a binding performed at execution time. Consider the following statements: i. Static scope facilitates w1 bindings. ii. Dynamic scope requires w2 bindings. iii. Early bindings w3 execution efficiency. iv. Late bindings w4 execution efficiency. The right choices of wl, w2, w3 and w4 (in that order) are
GateOverflow

Q103.

In the C language
GateOverflow

Q104.

Which of the following class of statement usually produces no executable code when compiled?
GateOverflow

Q105.

Which of the following comparisons between static and dynamic type checking incorrect?
GateOverflow

Q106.

Which of the following is NOT represented in a subroutine's activation record frame for a stack-based programming language?
GateOverflow

Q107.

Relative to the program translated by a compiler, the same program when interpreted runs
GateOverflow

Q108.

Consider the control flow graph shown. Which one of the following choices correctly lists the set of live variables at the exit point of each basic block?
GateOverflow

Q109.

Which languages necessarily need heap allocation in the runtime environment?
GateOverflow

Q110.

In a resident - OS computer, which of the following systems must reside in the main memory under all situations?
GateOverflow